package com.zl.zlproject.utils;

import android.os.Looper;

/**
 * Created by 郑磊 on 2018/5/30.
 */

public class ThreadUtils {

    /**
     * 判断当前是否在主线程
     *
     * @return
     */
    public static boolean isMainThread(){
        return Looper.getMainLooper().getThread() == Thread.currentThread();
    }
}
